package pool;

import com.sun.jmx.snmp.tasks.ThreadService;

import java.util.concurrent.*;

public class ExecutorsDemo1 {
    public static void main(String[] args) {
        ExecutorService service = new ThreadPoolExecutor(
                1,
                2,
                3,
                TimeUnit.DAYS, new ArrayBlockingQueue<>(5),
                new ThreadPoolExecutor.CallerRunsPolicy());

        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
    }
}
